<template>
	<view class="settinglist">
		<view class="seetlist">
			<view class="list-my">
				<text>我的服务</text>
			</view>
			<view class="list-ul">
				<view class="list-li" v-for="(item, index) in myCenterList" :key="index"  @click="handleItemSkip(index)">
					<view class="list-img">
						<image :src="item.image" mode=""></image>
					</view>
					<view class="list-border">
						<view class="list-text">
							<text>{{item.text}}</text>
						</view>
						<view class="list-fh tr">
							<image src="/static/image/setting-jr.png" mode=""></image>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="settbottom">
			<view class="list-img">
				<image src="/static/image/icon-dz.png" mode=""></image>
			</view>
			<view class="list-border">
				<view class="list-text">
					<text>分享好友</text>
				</view>
				<view class="list-fh">
					<image src="/static/image/setting-jr.png" mode=""></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				myCenterList: [{
					text: '收货地址',
					image: '/static/image/myAddress.png'
					}, {
					text: '我的店铺',
					image: '/static/image/myStore.png'
					}, {
					text: '商家入驻',
					image: '/static/image/Recruitment.png'
					}],
			}
		},
		onLoad() {
		},
		methods: {
			// 跳转至点击项页面
			handleItemSkip(index) {
				let skipIndex = index;
				switch(skipIndex) {
					case 0:
					uni.navigateTo({
						url: '../../pages/setting/address/index'
					})
					break;
					case 1:
					uni.navigateTo({
						url: '../../pages/setting/myStore/index'
					})
					break;
					case 2:
					uni.navigateTo({
						url: '../../pages/setting/recruitment/index'
					})
					break;
				}
			}
		},
	} 
</script>

<style lang="less" scoped>
	@import  "@/asset/less/base.less";
	.settinglist {
		width: 712rpx;
		margin: 0 auto;
		padding: 20rpx 0;

		.seetlist {
			width: 712rpx;
			background-color: #FFFFFF;

			.list-my {
				margin-left: 20rpx;
				padding-top: 10rpx;

				text {
					font-size: 30rpx;
					font-family: Source Han Sans CN;
					font-weight: bold;
					color: #313131;
				}
			}

			.list-ul {
				margin-top: 10rpx;

				.list-li {
					display: flex;
					align-items: center;
					padding: 10rpx 0;
					.list-img {
						margin-left: 20rpx;
						image {
							width: 30rpx;
							height: 42rpx;
						}
					}
					.list-border {
						margin-left: 20rpx;
						padding: 20rpx 20rpx 20rpx 0rpx;
						width: 700rpx;
						border-bottom: 2rpx solid #ECECEC;
						display: flex;
						align-items: center;
						justify-content: space-between;
						.list-text {
							text {
								font-size: 28rpx;
								font-family: Source Han Sans CN;
								font-weight: bold;
								color: #4F4F4F;
							}
						}
						.list-fh {
							width: 60rpx;
							height: 100%;
							image {
								width: 27rpx;
								height: 21rpx;
							}
						}
					}
					.list-border:last-child {
						
					}
				}
				.list-li:nth-child(2) {
					image {
						width: 33rpx;
						height: 29rpx;
					}
				}
				.list-li:nth-child(3) {
					image {
						width: 36rpx;
						height: 33rpx;
					}
				}
			}
		}

		.settbottom {
			margin-top: 20rpx;
			background-color: #FFFFFF;
			display: flex;

			.list-img {
				margin-left: 20rpx;
				display: flex;
				align-items: center;

				image {
					width: 30rpx;
					height: 42rpx;
				}
			}

			.list-border {
				margin-left: 20rpx;
				padding: 20rpx 20rpx 20rpx 0rpx;
				width: 700rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.list-text {
					text {
						font-size: 28rpx;
						font-family: Source Han Sans CN;
						font-weight: bold;
						color: #4F4F4F;
					}
				}

				.list-fh {
					image {
						width: 27rpx;
						height: 21rpx;
					}
				}
			}
		}
	}
</style>
